/*
 * @Author: intellectual-seeker 3336339701@qq.com
 * @Date: 2025-09-21 11:43:56
 * @LastEditors: intellectual-seeker 3336339701@qq.com
 * @LastEditTime: 2025-09-21 11:51:18
 * @FilePath: /code/lesson33/ThreadPool/test.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include <cstdarg>
#include <iostream>
using namespace std;

void func(int num, ...)
{
    va_list arg;
    va_start(arg, num);
    for(int i = 0; i < num; i++)
    {
        int n = va_arg(arg, int);
        cout << n << ' ';
    }
    cout << endl;
    va_end(arg);
}

int main()
{
    func(5, 4, 3, 2, 1, 0);

    return 0;
}